All examples on this page work out of the box with with Python 2.7, 3.2, 3.3, 3.4, and 3.5 without requiring any additional libraries. ... '. format (3.141592653589793) Output 3.141593 Padding numbers Similar to strings numbers can also be constrained